import { createApp } from 'vue'
//import './style.css'
import App from '@/App.vue'
import Echarts from 'vue-echarts'
import router from '@/router/index'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist' //pinia 数据持久化  存储在 sessionStorage  中
const pinia = createPinia()
pinia.use(piniaPluginPersist)

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
 import BaiduMap from 'vue-baidu-map-3x';
 
createApp(App)
.use(router) //使用路由
.use(pinia)
.use(ElementPlus, {
  locale: zhCn,
}).use(pinia).use(BaiduMap, {
  ak: 'uz8Xq9hiBs0aBFevWYTHwH8wW3ynLViI' // 替换为你的百度地图AK
}).component('v-chart',Echarts)
.mount('#app')
